Skip to content

Commit 7a8c00f

Browse files
authored
Merge pull request #1169 from dorssel/fix_help
Fix help message
2 parents 36796de + 78f5d59 commit 7a8c00f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

UnitTests/Driver_Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void DriverDescription(string platform)
7474
{
7575
using var inf = GetInf(platform);
7676

77-
var driverDescription= GetDriverDescription(inf);
77+
var driverDescription = GetDriverDescription(inf);
7878

7979
Assert.AreEqual(Usbipd.Interop.VBoxUsb.DriverDescription, driverDescription);
8080
}

UnitTests/SafeInfHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace UnitTests;
99

1010
sealed unsafe class SafeInfHandle : SafeHandleZeroOrMinusOneIsInvalid // DevSkim: ignore DS172412
1111
{
12-
public SafeInfHandle(void *inf)
12+
public SafeInfHandle(void* inf)
1313
: base(true)
1414
{
1515
handle = unchecked((nint)inf);

Usbipd.Automation/Device.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ sealed class Device
2020
#if !NETSTANDARD
2121
public
2222
#endif
23-
Device() { }
23+
Device()
24+
{ }
2425

2526
#if !NETSTANDARD
2627
[JsonConstructor]

Usbipd.Automation/UsbIds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static byte[] ReadData(string path)
3333
{
3434
#if NETSTANDARD
3535
// For PowerShell automation, the usb.ids file is in the assembly directory itself.
36-
var dataDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
36+
var dataDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
3737
#else
3838
// For usbipd, the usb.ids file is in the application base directory.
3939
var dataDirectory = AppContext.BaseDirectory;

Usbipd/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ await commandHandlers.List(invocationContext.ParseResult.HasOption(usbidsOption)
503503
)
504504
{
505505
ArgumentHelpName = "BUSID",
506-
Description = "Share device having <BUSID>",
506+
Description = "Add a policy for device having <BUSID>",
507507
}.AddCompletions(CompatibleBusIdCompletions);
508508
//
509509
// policy add [--hardware-id <VID>:<PID>]
@@ -515,7 +515,7 @@ await commandHandlers.List(invocationContext.ParseResult.HasOption(usbidsOption)
515515
)
516516
{
517517
ArgumentHelpName = "VID:PID",
518-
Description = "Attach device having <VID>:<PID>",
518+
Description = "Add a policy for device having <VID>:<PID>",
519519
}.AddCompletions(completionContext => CompletionGuard(completionContext, () =>
520520
UsbDevice.GetAll().GroupBy(d => d.HardwareId).Select(g => g.Key.ToString())));
521521
//

0 commit comments

Comments
 (0)