getargs-derive-macros 0.1.0

Internal implementation detail of getargs-derive. Not meant for direct use; depend on getargs-derive instead.
Documentation
1
2
3
4
5
6
7
8
use super::RawContainer;
use crate::model::attr::{reject_value, set_once};
use syn::meta::ParseNestedMeta;

pub(super) fn disable_help_flag(meta: &ParseNestedMeta, raw: &mut RawContainer) -> syn::Result<()> {
    reject_value(meta, "disable_help_flag")?;
    set_once(&mut raw.disable_help_flag, (), meta)
}