Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from gtema/dev
Browse files Browse the repository at this point in the history
chore: sort clap macros in path parameters
  • Loading branch information
gtema authored Feb 8, 2024
2 parents 6ae8156 + d137507 commit bfbe141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegenerator/rust_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def clap_macros(self):
# the value_name is turned back to the expected value
macros.add(f'id = "path_param_{self.local_name}"')
macros.add(f'value_name = "{self.local_name.upper()}"')
return f"#[arg({', '.join(macros)})]"
return f"#[arg({', '.join(sorted(macros))})]"


class RequestTypeManager(common_rust.TypeManager):
Expand Down

0 comments on commit bfbe141

Please sign in to comment.