Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sozo): make few argument global #2029

Merged
merged 2 commits into from
Jun 5, 2024
Merged

feat(sozo): make few argument global #2029

merged 2 commits into from
Jun 5, 2024

Conversation

lambda-0x
Copy link
Contributor

Description

make profile related and offline global so they can be specified anywhere in the argument list

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.13%. Comparing base (d9c4f4f) to head (b8b5f5d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2029   +/-   ##
=======================================
  Coverage   69.13%   69.13%           
=======================================
  Files         318      318           
  Lines       38524    38524           
=======================================
  Hits        26633    26633           
  Misses      11891    11891           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -70,15 +70,15 @@ impl SozoArgs {
#[derive(Parser, Clone, Debug)]
#[group(multiple = false)]
pub struct ProfileSpec {
#[arg(short = 'P', long)]
#[arg(short = 'P', long, global = true)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may not have short argument as global to avoid conflicts? Or do you think is is already in use by lot's of people like so, and we should keep it short too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i think we should keep both because even scarb uses P as the short version for specifying profile

@lambda-0x lambda-0x merged commit 9e25713 into main Jun 5, 2024
13 checks passed
@lambda-0x lambda-0x deleted the global-args branch June 5, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants