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

Key is specified twice and reference issues #4

Open
gh-ttgo opened this issue Mar 11, 2022 · 1 comment
Open

Key is specified twice and reference issues #4

gh-ttgo opened this issue Mar 11, 2022 · 1 comment

Comments

@gh-ttgo
Copy link

gh-ttgo commented Mar 11, 2022

The key "M" is specified twice in Program.cs. I changed the line to "N" and observed it to be working.
p.Setup<bool>('N', "perfdata-mbytes") .Callback(value => do_perfdata_mbytes = value) .WithDescription("\tArgument used to specify use of Megabytes rather than bytes in perfdata output") .SetDefault(false);

I also had to change the dependentAssembly lines in App.config as follows to get it running:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.3.1" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.0" /> </dependentAssembly> </assemblyBinding>

@TheFlyingCorpse
Copy link
Owner

I'll gladly accept a PR to give you the credit

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

No branches or pull requests

2 participants